package io;

import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @author Luka
 * @date 2021/05/28 11:34
 *
 * 追加字符串
 **/
public class FileAppendDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos  = new FileOutputStream("demo.dat",true);

        fos.write("热爱105°的你".getBytes("UTF-8"));
        fos.write("滴滴清纯的蒸馏水".getBytes("UTF-8"));
        System.out.println("写出完毕");
        fos.close();

    }
}